\encoding{utf8}
\name{cphsoc_spss_to_stata_misval}
\alias{cphsoc_spss_to_stata_misval}
\title{Convert SPSS missing values into Stata format}
\description{
  Convert SPSS missing values into Stata format
}
\usage{cphsoc_spss_to_stata_misval(fmt_name,vlabs,vvals,mis,var_name)}
\arguments{
  \item{fmt_name}{character, name of stata format.}
  \item{vlabs}{character vector, value labels)}
  \item{vvals}{numeric or character, values}
  \item{mis}{list, missing values list as returned by foreign, read.spss}
  \item{var_name}{character, name of variabel}
}
\value{   list(val2mis_str=modify_fmt_str,vlabs_str=recode_str)
  \item{val2mis_str}{update format}
  \item{vlabs_str}{code to recode to missing values}
}
\seealso{
  \code{\link{read.spss}}
}
\author{Finn Sandø}
\keyword{cphsoc}
\keyword{read.spss}
\keyword{foreign}
